<% @secret.except(:key, :value, :visible, :comment, :deprecated_at).each do |attribute, value| %>
  <%= form.input attribute do %>
    <% if [:creator_id, :updater_id].include?(attribute) %>
      <% if user = User.find_by_id(value) %>
        <%= link_to user.name_and_email, user %>
      <% else %>
        <%= "Unknown user id:#{value}" %>
      <% end %>
    <% else %>
      <%= value %>
    <% end %>
  <% end %>
<% end %>
